#pragma once

#include <QtGui/QWidget>

#include "utils.h"
#include "GeneratedFiles/ui_newnetworkwizard.h"

class CNetworkManager;

/*----------------------------------------------------------------------------*/

class NewNetworkWizard
	: public QWidget

/*----------------------------------------------------------------------------*/

{
	Q_OBJECT

/*----------------------------------------------------------------------------*/

public:

/*----------------------------------------------------------------------------*/

	NewNetworkWizard( CNetworkManager& _networkManager );

	~NewNetworkWizard();

	void ShowCentered( QWidget& _parent );

/*----------------------------------------------------------------------------*/

private:

/*----------------------------------------------------------------------------*/

	Ui::NewNetworkWizardUi* m_ui;

	CNetworkManager& m_networkManager;	

/*----------------------------------------------------------------------------*/

	void EnableTableItem( int _row, bool _state = true );

/*----------------------------------------------------------------------------*/

private slots:

/*----------------------------------------------------------------------------*/

	void NetworkCreate();	

	void GetInputsNum( const QString& _inputs );

	void GetLayersNum( int _layers );

	void GetOutputsNum( const QString& _outputs );

/*----------------------------------------------------------------------------*/

signals:

/*----------------------------------------------------------------------------*/

	void NetworkAccessible( bool );

/*----------------------------------------------------------------------------*/

};

/*----------------------------------------------------------------------------*/
